<%template _header%>
<%namespace YouHP.Model%>
<!--header end-->

<!--TheCurrent start-->
<div id="foruminfo">
	
	<div class="userinfo">
		<h2><a href="{Config.WebsiteUrl}" class="home">{Config.WebsiteTitle}</a>
			  <span><a href="usercp.aspx">用户中心</a></span>
			  <strong>症状记录信息</strong>
		</h2>
	</div>
	
	<div class="forumstats">
		<div id="search">
				<%template _quicksearch%>
		</div>
	</div>
	
</div>
<!--TheCurrent end-->

<script type="text/javascript">

	function checkrecordform()
	{
	      var f = $("recordform");
	      f.submit();
	}
		
</script>

<!--主体-->
<div class="controlpannel">
   <%template _memmenu%>
	<div class="pannelcontent">
		<div class="pcontent">
			<div class="panneldetail">
				<%template _mempatientmenu%>	
				<div class="pannelbody">
					<div class="pannellist">
					<%if ErrorCount==0%>
					
						<%if IsPost%>
						
							<%template _msgbox%>
							
						<%else%>
								
							 
							  <form action="" method="post" ID="recordform">	
							  	
								<label for="recorddate">发生时间:</label>
								<input name="recorddate" name="recorddate"
								       type="text" class="colorblue" id="diseasename" 
								       onfocus="this.className='colorfocus';"
								       onblur="this.className='colorblue';"
								       value="{RecordDate}"
								       size="20" />&nbsp;
								<br />
								
								<label>主要症状</label>
								<br />
								
								<%csharp%>
								     foreach(DiseaseSymptomInfo syminfo in PrimarySymptomList)
								     {
								       int data = GetSymptomRecordData(syminfo.SymptomId);
								<%/csharp%>
								      <label for="sym{syminfo.SymptomId}">&nbsp;&nbsp;{syminfo.SymptomName}</label>
								      <select id="sym{syminfo.SymptomId}" name="sym{syminfo.SymptomId}">
								         <%csharp%>
								             for(int i=0; i < SymptomDegree.Length; i++){
								         <%/csharp%>
								               <option value="{i}"
								               	<%csharp%> if(data==i) { <%/csharp%> 
								               	selected="true" 
								               	<%csharp%> } <%/csharp%>
								               	>{SymptomDegree[i]}</option>
								         <%csharp%>
								             }
								         <%/csharp%>
								      </select><br />
								<%csharp%>
								     }
							  <%/csharp%> 
								
								<label>次要症状</label>
								<br />
								
								<%csharp%>
								     foreach(DiseaseSymptomInfo syminfo in SecondSymptomList)
								     {
								       int data = GetSymptomRecordData(syminfo.SymptomId);
								<%/csharp%>
								      <label for="sym{syminfo.SymptomId}">&nbsp;&nbsp;{syminfo.SymptomName}</label>
								      <select  id="sym{syminfo.SymptomId}" name="sym{syminfo.SymptomId}">
								         <%csharp%>
								             for(int i=0; i < SymptomDegree.Length; i++){
								         <%/csharp%>
								               <option value="{i}"
								               	<%csharp%> if(data == i) { <%/csharp%> 
								               	selected="true" 
								               	<%csharp%> } <%/csharp%>
								               	>{SymptomDegree[i]}</option>
								         <%csharp%>
								             }
								         <%/csharp%>
								      </select>
								      <br />
								<%csharp%>
								     }
							  <%/csharp%> 

								
								<label for="remark">备注:</label>
						    <textarea name="remark" cols="36" rows="6" id="remark" class="colorblue" 
						  	      onfocus="this.className='colorfocus';" onblur="this.className='colorblue';" 
						  	      style="width:80%;">{SymptomRecordInfo.Remark}</textarea>
						    <br />
								
								<input type="hidden" name="symrecordid" value="{SymptomRecordInfo.Id}" />
								<label for="Submit">&nbsp;</label>
								
								<input type="button" name="btnSubmit" value="确定" class="sbutton" 
								       ID="btnSubmit" onclick="checkrecordform();"/>
							
							 </form>	
						<%/if%>
						</div>
						
					<%else%>
						<%template _memerrmsgbox%>
					<%/if%>
					
			  </div>
			</div>
		</div>
	</div>
</div>
<!--主体-->
</div>
<%template _copyright%>
<%template _footer%>
